<?php
/**
 * Created by PhpStorm.
 * User: trisatria
 * Date: 1/6/14
 * Time: 3:32 PM
 */

namespace Admin\Model;
class AdminTopicImg{

    public $id;
    public $topic_id;
    public $link;
    public $img_desc;
    public $user_id;

    public function exchangeArray($data)
    {
        $this->id     = (isset($data['id'])) ? $data['id'] : null;
        $this->topic_id = (isset($data['topic_id'])) ? $data['topic_id'] : null;
        $this->link  = (isset($data['link'])) ? $data['link'] : null;
        $this->img_desc  = (isset($data['img_desc'])) ? $data['img_desc'] : null;
        $this->user_id = (isset($data['user_id'])? $data['user_id']:null);
    }

}
